﻿@{
    ViewBag.Title = "_ProductVariantAttribute_List";
}


<table  class="table table-hover">
    <tr>
        <th>@T("admin.productvariantattribute.attribute")</th>
        <th>@T("admin.productvariantattribute.attributecontroltype")</th>
        <th>@T("admin.productvariantattribute.values")</th>
        <th></th>
    </tr>
<!-- ko foreach: ProductVariantAttributes -->
<tr>
    <td>
        <span data-bind="text:ProductAttributeName"></span>
    </td>
    <td>
        <span data-bind="text:AttributeControlTypeName"></span>
    </td>
    <td>
          <a data-bind="attr:{href: '/admin/ProductVariantAttribute/EditAttributeValues?productVariantAttributeId=' + Id()}">@T("admin.productvariantattribute.values.edit.title")</a>
    </td>
    <td>
          @*<a data-bind="attr:{href: '/admin/ProductVariantAttribute/Edit?id=' + Id()}">Edit</a>*@
          @*<a data-bind="attr:{href: '/admin/ProductVariantAttribute/Edit?id=' + Id()}">@T("admin.productvariantattribute.delete.button.title")</a>*@
          <a data-bind="click:$root.DeleteProductVariantAttribute">@T("admin.productvariantattribute.delete.title")</a>
    </td>
</tr>

<!-- /ko -->
</table>

<a  data-bind="attr:{href: '/admin/ProductVariantAttribute/Create?productVariantId=' + $root.Id()}">Create Product Variant Attribute</a>